/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.edu.fatec.ads.bo;

import br.edu.fatec.ads.classes.Acesso;
import br.edu.fatec.ads.classes.Sala;
import br.edu.fatec.ads.dao.HibernateGenericDAO;
import org.hibernate.HibernateException;

/**
 *
 * @author Ubirajara
 */
public class BusinessObjectAcesso implements IBusinessObject{

    private HibernateGenericDAO dao = null;

    public BusinessObjectAcesso() {
        dao = new HibernateGenericDAO(Acesso.class);
    }

    public void beginTransaction() {
        dao.beginTransaction();
    }

    public void commitTransaction() {
        dao.commitTransaction();
    }

    public void rollbackTransaction() {
        dao.rollbackTransaction();
    }

    public void clearSession() {
        dao.clearSession();
    }

    public void inserir(Acesso acesso)
        throws HibernateException{
        dao.save(acesso);
    }


}